import request from '@/utils/request'

// 查询我的订单列表
export function listOrdersYong(query) {
  return request({
    url: '/system/ordersYong/list',
    method: 'get',
    params: query
  })
}

// 查询我的订单详细
export function getOrdersYong(orderId) {
  return request({
    url: '/system/ordersYong/' + orderId,
    method: 'get'
  })
}
// 修改我的订单
export function updateOrdersYong(data) {
  return request({
    url: '/system/ordersYong',
    method: 'put',
    data: data
  })
}
export function updateOrderStatus(orderId, orderStatus) {
  return axios.put(`/system/ordersYong/${orderId}/status`, { orderStatus });
}






